# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=jfrog-cli
pkgver=2.11.0
pkgrel=3
pkgdesc="JFrog cli"
url="https://jfrog.com/getcli/"
arch="all"
license="Apache-2.0"
makedepends="go"
options="!check"
replaces="jfrog-cli-go"
provides="jfrog-cli-go=$pkgver-r$pkgrel"
source="$pkgname-$pkgver.tar.gz::https://github.com/jfrog/jfrog-cli/archive/v$pkgver.tar.gz"

build() {
	go build -o bin/jfrog -ldflags '-w -extldflags "-static"' main.go
}

package() {
	install -m755 -D bin/jfrog "$pkgdir/usr/bin/jfrog"
}

sha512sums="
abf8ac6874ae6ee75d69d68ca66e101387d2db54ebb87ff59fd50dbd4a13555a1f4701517d4e37cb332cffdadde28751bafa1c409ebb3453d774e3c14d28adde  jfrog-cli-2.11.0.tar.gz
"
